package cn.appsys.service.impl;

import cn.appsys.mapper.UserMapper;
import cn.appsys.pojo.User;
import cn.appsys.service.UserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional(rollbackFor = Exception.class)
public class UserServiceImpl implements UserService {

    @Resource
    UserMapper userMapper;

    @Override
    public User Login(String devCode, String devPassword) {
        return userMapper.Login(devCode, devPassword);
    }
}
